﻿@{
    ViewBag.Title = "Index";
}

<h2>Home Index</h2>
<p>@ViewBag.User</p>

@if (!Request.IsAuthenticated)
{
    Html.ActionLink("Login", "Index", "Account");
}
else
{
    <h3>wellcome @User.Identity.Name</h3>
    <h4>@Html.ActionLink("Logout", "Logout", "Account")</h4>
}
